package com.scarecrow.olga.util {
	
	import com.scarecrow.olga.error.VerboseError;
	/**
	 * Asserts that a certain expression is TRUE, if the expression's result is FALSE, an error will be thrown using the supplied message.
	 * 
	 * @param	expression a Boolean expression to assert.
	 * @param	message the message to show on the error thrown.
	 */
	function ASSERT(expression:Boolean, message:String = "no further details"):void {
		if(!expression) throw new VerboseError("Assertion Error.", "The supplied expression is false", {MESSAGE:message});
	}
}